package Dame;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class test6 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("G:\\HelloWorld.java");
        FileOutputStream fos = new FileOutputStream("G:\\javaSE_plus\\day11\\a.txt");

        int b;
        while ((b = fis.read()) != -1) {
            fos.write(b);
        }
        fos.close();
        fis.close();
    }
}
